package entity;

import java.util.Date;

/**
 * 项目名：PAIMSys
 * 包名：entity
 * 类名：Product
 * 描述：商品实体表
 * 作者：柳胜酉
 * 开始时间：2023/4/23
 * 完成时间：
 * 版本：1.0
 */

public class Product {
    private int product_id; //商品编号
    private String product_name; //商品名
    private String specification; //型号规格
    private double purchase_price; //进价
    private double selling_price; //单价
    private String unit; //单位（商品计量单位）
    private Date createTime; //创建时间（商品加入的时间）
    private String supplier_name; //供应商名
    private String photo;//商品图片

    public int getProduct_id() {
        return product_id;
    }

    public void setProduct_id(int product_id) {
        this.product_id = product_id;
    }

    public String getProduct_name() {
        return product_name;
    }

    public void setProduct_name(String product_name) {
        this.product_name = product_name;
    }

    public String getSpecification() {
        return specification;
    }

    public void setSpecification(String specification) {
        this.specification = specification;
    }

    public double getPurchase_price() {
        return purchase_price;
    }

    public void setPurchase_price(double purchase_price) {
        this.purchase_price = purchase_price;
    }

    public double getSelling_price() {
        return selling_price;
    }

    public void setSelling_price(double selling_price) {
        this.selling_price = selling_price;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public String getSupplier_name() {
        return supplier_name;
    }

    public void setSupplier_name(String supplier_name) {
        this.supplier_name = supplier_name;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getPhoto() {
        return photo;
    }

    public void setPhoto(String photo) {
        this.photo = photo;
    }

    @Override
    public String toString() {
        return "Product{" +
                "product_id=" + product_id +
                ", product_name='" + product_name + '\'' +
                ", specification='" + specification + '\'' +
                ", purchase_price=" + purchase_price +
                ", selling_price=" + selling_price +
                ", unit='" + unit + '\'' +
                ", createTime=" + createTime +
                ", supplier_name='" + supplier_name + '\'' +
                ", photo='" + photo + '\'' +
                '}';
    }
}
